const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 简化token 获取
  token: state => state.user.token,
  // 简化用户信息 获取
  userInfo: state => state.user.userInfo,
  // 是否登录的标记
  // userId 存在 返回true 反之返回false
  // isLogin:state=>state.user.userInfo.userId?true :false
  isLogin: state => !!state.user.userInfo.userId,
  // 动态路由
  routes: state => state.permission.allRoutes
}
export default getters
